package com.team.p;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.team.m.mapper.RecordMapper;
import com.team.m.pojo.Record;

/**
 * 记录service实现层
 * 
 * @author kungfupeng
 *
 */
@Service("recordService")
public class RecordServiceImpl implements RecordService {
	@Autowired
	@Qualifier("recordMapper")
	private RecordMapper recordMapper;

	public boolean saveRecord(Record record) {
		try {
			recordMapper.saveRecord(record);
			return true;
		} catch (Exception e) {
			return false;
		}
	}

}
